import { request } from "@/utils/http";
import { CityList, GetHospitalListParams, GetHospitalListResponse } from "./model/hospitalListType";

// 获取省/市/区列表数据
export const reqGetCityList = (parentId: number) => {
    return request.get<any, CityList>(`/admin/cmn/dict/findByParentId/${parentId}`);
};

export const reqGetHospitalList = ({ page, limit, ...params }: GetHospitalListParams) => {
    return request.get<any, GetHospitalListResponse>(`/admin/hosp/hospital/${page}/${limit}`, {
        params,
    });
};
